package cn.appsys.service.developer;

import cn.appsys.dao.appcategory.DevUserLoginMapper;
import cn.appsys.pojo.AppInfo;
import cn.appsys.pojo.DevUser;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DevUserLoginServiceImp implements  DevUserLoginService {
    @Resource
    private DevUserLoginMapper devUserLoginMapper;
    @Override
    public DevUser checkLoginBiz(String devCode, String userPassword) {
        DevUser     user = devUserLoginMapper.getLoginUser(devCode);
        //匹配密码
        if(null != user && user.getDevPassword().equals(userPassword)){
                return   user;
        }
        return null;
    }


}
